package ru.ifmo.lab3;

import java.util.concurrent.Semaphore;

public class Edge {
    private Integer vertexTo;
    private Integer capacity;
    private Semaphore semaphore;

    public Edge(Integer vertexTo, Integer capacity) {
        this.vertexTo = vertexTo;
        this.capacity = capacity;
        this.semaphore = new Semaphore(capacity, false);
    }

    public Integer getVertexTo() {
        return vertexTo;
    }

    public Integer getCapacity() {
        return capacity;
    }

    public Semaphore getSemaphore() {
        return semaphore;
    }
}
